package com.qf.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (TbChapter)实体类
 *
 * @author makejava
 * @since 2023-07-19 20:06:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbChapter{             /**
     * 章节编号
     */
    @TableId(type = IdType.AUTO)
    private Integer chapterId;
        /**
     * 章节名称
     */
    private String chapterName;
        /**
     * 章节顺序
     */
    private Integer chapterOrder;
        /**
     * 章节描述
     */
    private String chapterDesc;
        /**
     * 章节创建时间
     */
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date chapterCreatetime;
        /**
     * 对应课程编号
     */
    private Integer courseId;
        /**
     * 对应的资源编号
     */
    private Integer resourceId;
        /**
     * 资源路径
     */
    private String chapterUrl;

    @TableField(exist = false)
    private TbResource tbResource;


}

